package com.gxs.tga.examples;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.Response;
import javax.ws.rs.core.Response.Status;

import org.springframework.stereotype.Component;

@Component("helloRestBean")
@Path("helloRest")
public class HelloRest 
{
	@GET
	@Path("test")
	// test url: http://localhost:8081/helloRest/test?param1=world
	public Response getExample(@QueryParam("param1") String param1)
	{
		return Response.status(Status.OK).entity("hello " + param1).build();
	}

}
